package com.company.project.service.impl;

import com.company.project.dao.ThesisAssessmentResultMapper;
import com.company.project.model.ThesisAssessmentResult;
import com.company.project.service.ThesisAssessmentResultService;
import com.company.project.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by CodeGenerator on 2018/10/08.
 */
@Service
@Transactional
public class ThesisAssessmentResultServiceImpl extends AbstractService<ThesisAssessmentResult> implements ThesisAssessmentResultService {
    @Resource
    private ThesisAssessmentResultMapper thesisAssessmentResultMapper;


    @Override
    public List<ThesisAssessmentResult> getThesisAssessmentResultByThesisId(Integer thesisAssessmentId) {
        return thesisAssessmentResultMapper.selectThesisAssessmentResultByThesisId(thesisAssessmentId);
    }

    //批量保存
    @Override
    public Integer addThesisAssessmentResult(List<ThesisAssessmentResult> thesisAssessmentResults) {
        return thesisAssessmentResultMapper.insertList(thesisAssessmentResults);
    }
}
